package net.zjitc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.zjitc.common.ResponseResult;
import net.zjitc.entity.Manager;
import net.zjitc.entity.Vo.ManagerVo;
import net.zjitc.exception.ManagerException;

import java.util.List;

public interface ManagerService {
    List<Manager> selectAll();

    Page<ManagerVo> selectPage(String query, Integer pagenum, Integer pagesize);

    ResponseResult addUsers(ManagerVo managerVo);

    ResponseResult selectById(Integer id);


    ResponseResult updateType(Integer uId, Boolean type);

    ResponseResult updateUser(Long id, Manager manager);

    ResponseResult deleteUser(Integer id);

    ResponseResult<Manager> selectByUsername(String username);

    ResponseResult<Manager> giveManagerRole(Long id, Manager manager) throws ManagerException;

    Manager getByUsername(String username);

    String getUserAuthirutyInfo(Manager manager);

    void clearUserAuthorityInfo(String username);

}
